package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 支付渠道配置表
 * </p>
 *
 * @author Shane
 * @since 2020-10-14
 */
@TableName("pay_channel_config")
public class PayChannelConfig implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 渠道id
	 */
	@TableField(value="channel_id")
	private Integer channelId;

	/**
	 * 所属公司
	 */
	private String company;

	/**
	 * 渠道费率
	 */
	private Double rate;

	/**
	 * 渠道类型，0-原生  1-支付派
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 应用id
	 */
	@TableField(value="app_id")
	private String appId;

	/**
	 * 账号，支付宝账号/微信商户号
	 */
	@TableField(value="account_number")
	private String accountNumber;

	/**
	 * 支付宝公钥类型，1-公钥  2-公钥证书
	 */
	@TableField(value="alipay_public_key_type")
	private Integer alipayPublicKeyType;

	/**
	 * 支付宝RSA密钥类型，RSA(SHA1)、RSA2(SHA256)
	 */
	@TableField(value="alipay_rsa_type")
	private String alipayRsaType;

	/**
	 * 应用私钥
	 */
	@TableField(value="alipay_app_private_key")
	private String alipayAppPrivateKey;

	/**
	 * 支付宝公钥，type为1必填
	 */
	@TableField(value="alipay_public_key")
	private String alipayPublicKey;

	/**
	 * 支付宝公钥证书路径，type为2必填
	 */
	@TableField(value="alipay_public_key_crt_path")
	private String alipayPublicKeyCrtPath;

	/**
	 * 应用公钥证书路径，type为2必填
	 */
	@TableField(value="alipay_app_public_key_crt_path")
	private String alipayAppPublicKeyCrtPath;

	/**
	 * 支付宝根证书路径，type为2必填
	 */
	@TableField(value="alipay_root_crt_path")
	private String alipayRootCrtPath;

	/**
	 * api密钥
	 */
	@TableField(value="wxpay_api_key")
	private String wxpayApiKey;

	/**
	 * api证书，非必填
	 */
	@TableField(value="wxpay_api_crt")
	private String wxpayApiCrt;

	/**
	 * api证书m密钥，非必填
	 */
	@TableField(value="wxpay_api_crt_key")
	private String wxpayApiCrtKey;

	/**
	 * 权重，0-100
	 */
	private Integer wi;

	@TableField(value = "total_amount")
	private Integer totalAmount;

	/**
	 * 状态，0-有效  1-无效
	 */
	@TableField(value = "`status`")
	private Integer status;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 
	 */
	private String remark;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getChannelId() {
		return channelId;
	}

	public void setChannelId(Integer channelId) {
		this.channelId = channelId;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Double getRate() {
		return rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAccountNumber() {
		return accountNumber;
	}

	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}

	public Integer getAlipayPublicKeyType() {
		return alipayPublicKeyType;
	}

	public void setAlipayPublicKeyType(Integer alipayPublicKeyType) {
		this.alipayPublicKeyType = alipayPublicKeyType;
	}

	public String getAlipayRsaType() {
		return alipayRsaType;
	}

	public void setAlipayRsaType(String alipayRsaType) {
		this.alipayRsaType = alipayRsaType;
	}

	public String getAlipayAppPrivateKey() {
		return alipayAppPrivateKey;
	}

	public void setAlipayAppPrivateKey(String alipayAppPrivateKey) {
		this.alipayAppPrivateKey = alipayAppPrivateKey;
	}

	public String getAlipayPublicKey() {
		return alipayPublicKey;
	}

	public void setAlipayPublicKey(String alipayPublicKey) {
		this.alipayPublicKey = alipayPublicKey;
	}

	public String getAlipayPublicKeyCrtPath() {
		return alipayPublicKeyCrtPath;
	}

	public void setAlipayPublicKeyCrtPath(String alipayPublicKeyCrtPath) {
		this.alipayPublicKeyCrtPath = alipayPublicKeyCrtPath;
	}

	public String getAlipayAppPublicKeyCrtPath() {
		return alipayAppPublicKeyCrtPath;
	}

	public void setAlipayAppPublicKeyCrtPath(String alipayAppPublicKeyCrtPath) {
		this.alipayAppPublicKeyCrtPath = alipayAppPublicKeyCrtPath;
	}

	public String getAlipayRootCrtPath() {
		return alipayRootCrtPath;
	}

	public void setAlipayRootCrtPath(String alipayRootCrtPath) {
		this.alipayRootCrtPath = alipayRootCrtPath;
	}

	public String getWxpayApiKey() {
		return wxpayApiKey;
	}

	public void setWxpayApiKey(String wxpayApiKey) {
		this.wxpayApiKey = wxpayApiKey;
	}

	public String getWxpayApiCrt() {
		return wxpayApiCrt;
	}

	public void setWxpayApiCrt(String wxpayApiCrt) {
		this.wxpayApiCrt = wxpayApiCrt;
	}

	public String getWxpayApiCrtKey() {
		return wxpayApiCrtKey;
	}

	public void setWxpayApiCrtKey(String wxpayApiCrtKey) {
		this.wxpayApiCrtKey = wxpayApiCrtKey;
	}

	public Integer getWi() {
		return wi;
	}

	public void setWi(Integer wi) {
		this.wi = wi;
	}

	public Integer getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(Integer totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
